/*
 * XML Type:  CreditCardStatementRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.CreditCardStatementRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML CreditCardStatementRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class CreditCardStatementRequestImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.CreditCardStatementRequest
{
    
    public CreditCardStatementRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CCACCTFROM$0 = 
        new javax.xml.namespace.QName("", "CCACCTFROM");
    private static final javax.xml.namespace.QName INCTRAN$2 = 
        new javax.xml.namespace.QName("", "INCTRAN");
    
    
    /**
     * Gets the "CCACCTFROM" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount getCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTFROM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "CCACCTFROM" element
     */
    public void setCCACCTFROM(net.ofx.types.x2003.x04.CreditCardAccount ccacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTFROM$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTFROM$0);
            }
            target.set(ccacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "CCACCTFROM" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount addNewCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTFROM$0);
            return target;
        }
    }
    
    /**
     * Gets the "INCTRAN" element
     */
    public net.ofx.types.x2003.x04.IncTransaction getINCTRAN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IncTransaction target = null;
            target = (net.ofx.types.x2003.x04.IncTransaction)get_store().find_element_user(INCTRAN$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INCTRAN" element
     */
    public boolean isSetINCTRAN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INCTRAN$2) != 0;
        }
    }
    
    /**
     * Sets the "INCTRAN" element
     */
    public void setINCTRAN(net.ofx.types.x2003.x04.IncTransaction inctran)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IncTransaction target = null;
            target = (net.ofx.types.x2003.x04.IncTransaction)get_store().find_element_user(INCTRAN$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IncTransaction)get_store().add_element_user(INCTRAN$2);
            }
            target.set(inctran);
        }
    }
    
    /**
     * Appends and returns a new empty "INCTRAN" element
     */
    public net.ofx.types.x2003.x04.IncTransaction addNewINCTRAN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IncTransaction target = null;
            target = (net.ofx.types.x2003.x04.IncTransaction)get_store().add_element_user(INCTRAN$2);
            return target;
        }
    }
    
    /**
     * Unsets the "INCTRAN" element
     */
    public void unsetINCTRAN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INCTRAN$2, 0);
        }
    }
}
